package com.zzty.zzlp.service;

import com.zzty.zzlp.entity.*;

import java.util.List;

public interface GroupService {
    public void createGroup(Group group);

    public Integer searchNextGroupId();

    public void setGroupInfo(Integer id,String name);

    public GroupInfo searchGroupName(Integer id);

    public List<Group> searchAllGroup(Integer userId);

    public List<Integer> searchUsersInGroup(Integer groupId);

    public Chat searchGroupLastMsg(Integer groupId);

    public List<ChatBuffer> searchGroupMessageCount(Integer groupId, Integer userId);

    public void readGroupMessage(Integer groupId, Integer userId);

    public List<User_info> searchUserInfos();

    public String searchAllGroupMsg(Integer groupId,Integer userId);
}
